﻿using SXFramWork.Core;
using SXFramWork.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace SXFramWork.Repository
{
    public interface ISysJobRepository:IRepository<SysJobEntity>
    {
        Task<List<SysJobEntity>> Query(JobQueryModel model);
        /// <summary>
        /// 修改任务状态
        /// </summary>
        /// <param name="group">分组</param>
        /// <param name="code">编码</param>
        /// <param name="status">状态</param>
        /// <returns></returns>
        Task<bool> UpdateStatus(string group, string code, int status);

      
        /// <summary>
        /// 任务是否停止
        /// </summary>
        /// <param name="group"></param>
        /// <param name="code"></param>
        /// <returns></returns>
        Task<bool> HasStop(string group, string code);
    }
}
